package com.tpc.dao.core;

import com.google.gwt.user.client.rpc.IsSerializable;
import java.util.Date;

public class TPC_OBJECT implements IsSerializable  {
    
    private int id;
    private int life;
    private Date created_date;
    private Date modified_date;
    private String createdOn;
    private String modifiedOn;
    private int created_by;
    private int modified_by;
    
    public TPC_OBJECT() {
        
    }
    
     /** ALL TPC_OBJECT HAVE THOSE METHODS / FIELDS **/
    public int getId() {
        return id;
    }
    public void setId(int param) {
        id = param;
    }

    public int getLife() {
        return life;
    }
    public void setLife(int param) {
        life = param;
    }
    
    public void setCreatedAsString(String param) {
        createdOn = param;
    }
    public String getCreatedAsString() {
        return "créé "+createdOn;
    }
    
    public void setModifiedAsString(String param) {
        modifiedOn = param;
    }
    public String getModifiedAsString() {
        return "modifié "+modifiedOn;
    }
    
    public Date getCreatedDate() {
        return created_date;
    }
    public void setCreatedDate(Date param) {
        created_date = param;
    }

    public int getCreatedBy() {
        return created_by;
    }
    public void setCreatedBy(int param) {
        created_by = param;
    }

    public Date getModifiedDate() {
        return modified_date;
    }
    public void setModifiedDate(Date param) {
        modified_date = param;
    }

    public int getModifiedBy() {
        return modified_by;
    }
    public void setModifiedBy(int param) {
        modified_by = param;
    }
    
}
